function toeps {
for img in $(ls *.dia); do
  dia -t eps "$img"
done
}

pwd=$PWD
for folder in benchmark database model; do
  cd $pwd/images/$folder
  toeps
done
